package com.xsomnus.java_basic;

/**
 * @author @叶小夏
 * @since 2019/7/31 0031 9:33
 * - 才需学也,学需静也/非淡泊无以明志，非宁静无以致远
 */
public class Test {
    public static void main(String[] args) {
        int i = -5;
        System.out.println(Integer.toBinaryString(i));

        new Test().testTryCatchContinue();
    }


    public void testTryCatchContinue() {
        for (int i = 0; i < 10; i++) {
            try {
                if (i / 2 == 0) {
                    throw new RuntimeException("test");
                }
            } catch (Exception e) {
                System.out.println(e.getLocalizedMessage());
                continue;
            }
            System.out.println(i);
        }
    }

}
